{include file="common/_meta" /}
<title>新增下载 - 资讯管理 </title>
<meta name="keywords" content="李志立，lizhilimaster@163.com">
<meta name="description" content="李志立，lizhilimaster@163.com">
</head>
<body>
<article class="page-container" >
    <div class="img">
        <img src="__MANAGE__shuoquan.png" alt="">
    </div>
    {if $is_empower}
    <h4 style="color: #00CC99">状态：已经授权</h4>
    {else /}
    <h4 style="color: #cc0011">状态：未授权</h4>
    {/if}
    <div class="wen">
        <b>授权说明：</b>授权和未授权功能无任何区别。授权的目的是用于统计当前的用户，以及收集信息用于后期关系维护！希望大家和我联系，(*^__^*) 嘻嘻……
    </div>
    <div class="wen" style="margin-top: 10px">
        <b>授权方法：</b>请编写好，需要授权的域名和个人联系方式，发送到 <a style="color: #0e90d2" href='mailto:lizhilimaster@163.com'>lizhilimaster@163.com</a>。 由于我不是实时查看邮箱，有时候会迟缓。也可以通过下面QQ找到我。感谢大家支持！
    </div>
    {if !$is_empower}
    <form class="form form-horizontal" enctype="multipart/form-data" action="" method="post" id="form-article-add">
        <div style="display: flex;align-items: center">
            <input type="text" class="input-text" value="" placeholder="请输入授权码" id="code" name="code" style="margin-right: 30px">
            <button class="btn btn-primary radius" type="submit">注册</button
        </div>
    </form>
    {/if}
</article>
{include file="common/_footer" /}
<style type="text/css">
    .img{
        width: 200px;
        margin:0px auto 8px auto;
    }
    .img img{
        width: 100%;
    }
    h4{
        text-align: center;
        font-weight: 600;
        margin: 20px 0 30px 0;
    }
    .wen{
        line-height: 2;
    }
    form{
        margin-top: 20px;
    }
</style>
<script type="text/javascript" src="__MANAGE__lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__MANAGE__lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__MANAGE__lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    $(function() {
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        let wo=$("#form-article-add").validate({
            rules: {
                code: {
                    required: true,
                },

            },
            submitHandler:function(form) {
                $("input[type=\"submit\"]").addClass('disabled').attr("disabled",true);
                var index = layer.load(1, {
                    shade: [0.1,'#fff'] //0.1透明度的白色背景
                });
                setTimeout(()=>{
                    $("input[type=\"submit\"]").removeClass('disabled').attr("disabled",false);
                    layer.close(index);
                },1000)
                form.submit();
            }
        });

    });
</script>
</body>
</html>
